<template>
  <div class="cet">
    <h4>{{ route.query.title }}</h4>
    <h5>历年CET情况</h5>
    <ul>
      <li><h6>统考项目</h6></li>
      <li><h6>考试学期</h6></li>
      <li><h6>考试学期</h6></li>
    </ul>
    <ul v-for="item in examList" :key="item.id">
      <li>
        <h6>{{ item.name }}</h6>
      </li>
      <li>
        <h6>{{ item.semester }}</h6>
      </li>
      <li>
        <h6>{{ item.grade }}</h6>
      </li>
    </ul>
  </div>
</template>

<script setup lang="ts" name="CET">
import { useRoute } from "vue-router";
import { ref } from "vue";

let route = useRoute();
let examList = ref([
  {
    id: "abc001",
    name: "全国大学英语六级",
    semester: "202302",
    grade: 500,
  },
  {
    id: "abc002",
    name: "全国大学英语四级",
    semester: "202301",
    grade: 515,
  },
]);
</script>

<style scoped>
.cet {
  background-color: rgb(223, 250, 250);
  border-radius: 10px;
  box-shadow: 0 0 10px;
  text-align: center;
}
li {
  list-style-type: none;
  margin: 0 10px;
}
ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
</style>
